﻿using System.Runtime.CompilerServices;
using UnityEngine;

namespace ProjectDanmaku.Core
{
    public struct CircleCollider
    {
        public Vector3 Collider;
        public int LayerBits;

        public CircleCollider(Vector3 collider, int layerBits)
        {
            Collider = collider;
            LayerBits = layerBits;
        }

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public bool CheckMask(uint mask)
        {
            return ((uint)LayerBits & mask) > 0;
        }
    }
}